Show the code
## USE GEO_JOIN TO COMBINE SPATIAL DATA AND OTHER DATA FRAMES
joinOR<- geo_join(or_tracts, or,
by_sp="GEOID", by_df="GEOID")
## USE TMAP PACKAGE
tm_shape(joinOR)+
tm_fill("estimate", style = "quantile", n=7, palette = "Greens")+
tm_legend(bg.color="white", bg.alpha=0.6)+
tm_style("gray")
Show the code
## SET GEOMETRY
oregon <- get_acs(geography = "tract", year=this.year,
state = "OR",
variables = "B25077_001E",
geometry = TRUE)
#Plotting with MAPVIEW
mapview(oregon, zcol = "estimate", legend = TRUE,
lwd=.25)